@extends('layouts.app')

@section('content')
<div class="content-header">
    <h1>部署日志</h1>
    <ol class="breadcrumb">
      <li><a href="{{ url('/') }}"><i class="fa fa-dashboard"></i> 首页</a></li>
      <li class="active">部署日志</li>
    </ol>
  </div>
<div class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-primary">
                <div class="panel-heading">日志</div>

                <div class="panel-body">
                    @if (empty($log))
                    获取日志中...2秒后自动刷新...
                    <script>
                        setTimeout(function () {
                            window.location.reload();
                        }, 2000);
                    </script>
                    @else
                    {!! nl2br($log) !!}
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
@endsection